﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhp.Model.Sys
{
    /// <summary>
    /// 
    /// </summary>
    public class UserRoleModel
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 是否是当前角色
        /// </summary>
        public bool IsCurrentRole { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class UserRoleQuery : PageModel
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public long RoleId { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class UserRoleCreate
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public long RoleId { get; set; }

        /// <summary>
        /// 添加用户
        /// </summary>
        public List<long> UserIdList { get; set; }
    }


    /// <summary>
    /// 
    /// </summary>
    public class UserRoleByUserModel
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }

        /// <summary>
        /// 是否是当前用户
        /// </summary>
        public bool IsCurrentUser { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class UserIdQuery : PageModel
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserId { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class UserRoleByUserCreate
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        public List<long> RoleIdList { get; set; }
    }
}
